package com.sinosoft.msf.base.supplier.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.sinosoft.msf.base.supplier.pojo.entity.SAuditRecord;
import com.sinosoft.msf.base.supplier.pojo.entity.SCompanyFile;
import com.sinosoft.msf.base.supplier.pojo.entity.SProjectInfo;
import lombok.Data;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class ProjectInfoPojo extends SProjectInfo {
    /**
     * 选中供应商的ID
     */
    List<UploadFile> files;

    String supId;
    /**
     * 中标公司
     */
    List<String> selectedIds;
    /**
     * 公司名称
     */
    String companyNames;
    String userName;
    /**
     * 供应商报价金额
     */
    String comPrice;
    List<SAuditRecord> record;
    /**
     * 审核结论
     */
    private String auditResult;

    /**
     * 审核意见
     */
    private String auditRemark;
    /**
     * 供应商报告
     */
    private String proReport;
    private String createdDateStr;
    /**
     * 供应商
     */
    private List<CompanyInfoPojo> companys;
    private List<SCompanyFile> companyFiles;
    /**
     * 验证后的信息
     */
    private ValiInfo valiInfo;
    @JsonIgnoreProperties(ignoreUnknown = true)
    @Data
    public static class UploadFile{
        @JSONField(name = "uid")
        private String uid;
        @JSONField(name = "name")
        private String name;
        @JSONField(name = "size")
        private Integer size;
        @JSONField(name = "type")
        private String type;
        @JSONField(name = "url")
        private String url;
    }
    @JsonIgnoreProperties(ignoreUnknown = true)
    @Data
    public static class ValiInfo{
        @JSONField(name = "comId")
        private String comId;
        @JSONField(name = "socialCreditCode")
        private String socialCreditCode;
        @JSONField(name = "legalPerson")
        private String legalPerson;
        @JSONField(name = "id")
        private String id;
        @JSONField(name = "name")
        private String name;
    }
}